package com.lrkj.back.entity;

import java.io.Serializable;
import java.util.Comparator;
import java.util.Date;

public class TbEmpOper implements Serializable, Comparable<TbEmpOper> {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer empoperId;

    private Integer employeeId;

    private Integer moduleId;

    private Date empoperCreatetime;

    public Integer getEmpoperId() {
        return empoperId;
    }

    public void setEmpoperId(Integer empoperId) {
        this.empoperId = empoperId;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public Integer getModuleId() {
        return moduleId;
    }

    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    public Date getEmpoperCreatetime() {
        return empoperCreatetime;
    }

    public void setEmpoperCreatetime(Date empoperCreatetime) {
        this.empoperCreatetime = empoperCreatetime;
    }

	@Override
	public String toString() {
		return "TbEmpOper [empoperId=" + empoperId + ", employeeId="
				+ employeeId + ", moduleId=" + moduleId
				+ ", empoperCreatetime=" + empoperCreatetime + "]";
	}

    public int compare(TbEmpOper o1, TbEmpOper o2) {


        return o1.getEmpoperId()-o2.getEmpoperId();
    }

    @Override
    public int compareTo(TbEmpOper o) {
        return this.getModuleId()-o.getModuleId();
    }
}